#include<iostream>
#include<mysql.h>


int main()
{
    MYSQL* con=mysql_init(nullptr);
    if(nullptr==mysql_real_connect(con,"127.0.0.1","http_test","12345678","http_test",3306,nullptr,0))
    {
        std::cerr<<"fail"<<std::endl;
        return 1;
    }
    std::cerr<<"success"<<std::endl;
    mysql_close(con);
    return 0;
}